package edu.mtu.citizenscience.cs.utils;

import android.content.Context;
import android.widget.Toast;
/**
 * @author Corbin Uselton <corbinu@cwuselto@mtu.edu>
 * @copyright (c) 2012 MichiganTech <http://www.mtu.edu>
 * @since 1.0
 * 
 * Holds utilities for showing messages as toasts
 */
public class Message {
	
	/**
	 * Show a the message as a toast to the user
	 * 
	 * @param   context - Context - the activity displaying the message
	 * @param	message - String - the message to display in the toast
	 * @return	void
	 */
	public static void showMessage(Context context, String message)
	{
		Message.showMessage(context, message, Toast.LENGTH_LONG);
	}
	
	/**
	 * Show a the message as a toast to the user
	 * 
	 * @param   context - Context - the activity displaying the message
	 * @param	message - String - the message to display in the toast
	 * @param	length - int - the time to show the toat for
	 * @return	void
	 */
	public static void showMessage(Context context, String message, int length)
	{
		Toast.makeText(context, message, length).show();
	}
	
}
